#-------------------------------------------------
#
# Project created by QtCreator 2016-11-05T16:03:58
#
#-------------------------------------------------
##DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS
#DEFINES += D_USE_FLEET_WINDOW

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

#TRANSLATIONS += topViewEnglishLan.ts

TARGET = mapView
TEMPLATE = lib

DEFINES += MAPVIEW_LIBRARY

INCLUDEPATH += ../CommunicateDelegate
INCLUDEPATH += ../ProgramSet
INCLUDEPATH += ../ProgramLanguageTranslate
INCLUDEPATH += ../../include/MacroDefine

contains( DEFINES, D_USE_FLEET_WINDOW ){
message("project use D_USE_FLEET_WINDOW !")

INCLUDEPATH += ../FleetMainPro
INCLUDEPATH +=../mapStructData
INCLUDEPATH +=../mapCommon
INCLUDEPATH +=../DeviceLog
INCLUDEPATH +=../TaskManagement
INCLUDEPATH +=../UserLog
INCLUDEPATH +=../UserManagement
INCLUDEPATH +=../WidgetWait
INCLUDEPATH +=../AgvManagement
INCLUDEPATH +=../MapEdit
INCLUDEPATH +=../FleetMonitor
INCLUDEPATH +=../SocketFleetTest
}




unix {
    target.path = /usr/lib
    INSTALLS += target
}


OTHER_FILES +=

INCLUDEPATH += ../../include/
#INCLUDEPATH += ../../include/yaml-cpp
INCLUDEPATH +=/usr/local/include/yaml-cpp



contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../lib/x86_WINDOWS

#编译目录
UI_DIR += ../../build/tmphmi/x86_windows/mapview
MOC_DIR += ../../build/tmphmi/x86_windows/mapview
OBJECTS_DIR += ../../build/tmphmi/x86_windows/mapview
RCC_DIR  += ../../build/tmphmi/x86_windows/mapview
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../lib/x86

#LIBS += -L../../lib/x86 -lyaml-cpp
LIBS     += /usr/local/lib/libyaml-cpp.so

#编译目录
UI_DIR += ../../build/tmphmi/x86_linux/mapview
MOC_DIR += ../../build/tmphmi/x86_linux/mapview
OBJECTS_DIR += ../../build/tmphmi/x86_linux/mapview
RCC_DIR  += ../../build/tmphmi/x86_linux/mapview
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../lib/arm
#编译目录
UI_DIR += ../../build/tmphmi_arm/mapview
MOC_DIR += ../../build/tmphmi_arm/mapview
OBJECTS_DIR += ../../build/tmphmi_arm/mapview
RCC_DIR  += ../../build/tmphmi_arm/mapview
}



FORMS += \
    mapview.ui \
    balljoystick.ui \
    mapedittoolbox.ui \
    reflecteditdialog.ui

HEADERS += \
    mapview.h \
    vehicleitem.h \
    basemapimage.h \
    mapscene.h \
    maplogic.h \
    mapgraphicsview.h \
    mapdelegate.h \
    balljoystick.h \
    mapedittoolbox.h \
    mapresourcesshow.h \
    bezier.h \
    reflecteditdialog.h

SOURCES += \
    mapview.cpp \
    vehicleitem.cpp \
    basemapimage.cpp \
    mapscene.cpp \
    maplogic.cpp \
    mapgraphicsview.cpp \
    mapdelegate.cpp \
    balljoystick.cpp \
    mapedittoolbox.cpp \
    mapresourcesshow.cpp \
    bezier.cpp \
    reflecteditdialog.cpp

RESOURCES += \
    directionresources.qrc
